﻿using MvcApplication.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcApplication.Data.Mapping
{
    public class PostCategory_Mapping : EntityTypeConfiguration<PostCategory>
    {
        public PostCategory_Mapping()
        {
            this.HasKey(t => new { t.CategoryID, t.PostID });
            this.ToTable("PostCategory");
        }
    }
}
